import React, { useContext, useState } from 'react'
import ThemeContext from '../../ThemeContext'

function VoteMain(props) {
  let { store } = useContext(ThemeContext)
  let { supNum, oppNum } = store.getState().vote
  return <div>
    <div>支持数：{supNum}</div>
    <div>反对数数：{oppNum}</div>
  </div>
}

export default VoteMain